package com.xiaohudie.JVM;

/**
 * @Author xiao hu die
 * @Date 2022/3/19 15:41
 * @Version 1.0
 */
/**帧内存溢出*/
public class Zhang {
    private static Integer a =0;
    public static void main(String[] args) {
        try {
            add();
        }catch (Throwable e){
            e.printStackTrace();
            System.out.println(a);
        }
    }
    public static void add(){
        a++;
        add();
    }
}
